#ifndef _DRV_PWM_H_
#define _DRV_PWM_H_

#define MAX_HINT_LEN 512
#define DEFULAT_CFG_VALUE (-1)

/**
 * @brief create the device, and enable pwm
 * 
 * @return: 0 - success; otherwise error code;
 */
int drv_pwm_init();

/**
 * @brief Set the pwm percent object, and
 * 
 * @param cycle_lenth 设置占空比为cycle_lenth%
 * @return: 0 - success; otherwise error code; 
 */
int set_pwm_percent(int cycle_lenth);

/**
 * @brief get the CyclePercent
 * 
 * @return int CyclePercent
 */
int read_cycle_percent();

#endif